home *** CD-ROM | disk | FTP | other *** search
/ PC Home 109 / PC Home 109.iso / data1.cab / Program_Files / be004.dxr / 00092.ls < prev    next >
Encoding:
Text File  |  2001-03-02  |  499 b   |  20 lines

  1. on exitFrame
  2.   global DirectionUp
  3.   set DirectionSpeed to 1
  4.   set LastTick to the ticks
  5.   set OriginalTick to the ticks
  6.   repeat while (the ticks - OriginalTick) < 80
  7.     set y to DirectionSpeed * (the ticks - LastTick)
  8.     set LastTick to the ticks
  9.     set the locV of sprite 15 to the locV of sprite 15 - y
  10.     if (the locV of sprite 15 < 100) or (the locV of sprite 15 > 200) then
  11.       set DirectionSpeed to -DirectionSpeed
  12.     end if
  13.     updateStage()
  14.   end repeat
  15. end
  16.  
  17. on mouseUp
  18.   go(80)
  19. end
  20.